package com.xzzz.irda.auth.core.token;


import cn.hutool.core.lang.UUID;
import com.xzzz.irda.auth.core.authorization.Authorization;

/**
 * 默认TOKEN生成器, UUID生成
 *
 * @author wangyf
 *
 */
public class DefaultTokenGenerator implements TokenGenerator {

    /**
     * 生成 TOKEN
     * @return TOKEN
     */
    @Override
    public String generate(Authorization authorization) {
        return UUID.fastUUID().toString(true);
    }
}
